-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wc/snap to terrain - CsvSpawner: Make "snap to terrain" based on collision layer. #74
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the namespaces and formatting. Also, some changes look like reverting to the older version (most probably because you were using the older snapshot when working on it).
I've copied the code from version I had in other repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is not fromated:
And there is a problem with missing headers
/home/michalpelka/github/ROSConDemo2023WorkDir/robotec-o3de-tools/Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.h:63:3: error: use of undeclared identifier 'AzPhysics'
AzPhysics::CollisionLayer m_selectedCollisionLayer; //!< To which collision layer this target will be attached
Please fix compilation error: |
Signed-off-by: wc-robotec <[email protected]>
Signed-off-by: wc-robotec <[email protected]>
Signed-off-by: wc-robotec <[email protected]>
Fixed missing header error and added Az_Asert. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting was changed to other than o3de default. Please revert it
Signed-off-by: Michał Pełka <[email protected]>
Signed-off-by: wc-robotec <[email protected]>
Signed-off-by: wc-robotec <[email protected]>
I've added CollisionLayer to AssetConfig.
When Place On Terrain is Enabled - then a layer can be chosen to which object will be attached on spawn.